package builder;

public class Builder {
    private static Product product;

    public static Builder product() {
        product = new Product();
        return new Builder();
    }

    public Builder name(String name) {
        product.setName(name);
        return this;
    }

    public Builder price(Long price) {
        product.setPrice(price);
        return this;
    }

    public Product build() {
        return product;
    }
}
